#ifndef AUTHDIALOG_H
#define AUTHDIALOG_H

#include <QDialog>
#include "abstractprovider.h"

namespace Ui {
    class AuthDialog;
}

class AuthDialog : public QDialog {
    Q_OBJECT
public:
    AuthDialog(QWidget *parent = 0);
    AbstractProvider* getProvider();
    ~AuthDialog();

private:
    Ui::AuthDialog *ui;
    AbstractProvider *provider;

private slots:
    void authSlot();
    void catchStatus(AbstractProvider::AuthResult);
};

#endif // AUTHDIALOG_H
